package com.woniuxy.dao.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 维修用料表
 * </p>
 *
 * @author Keep it simple
 * @since 2022-06-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class RepairMaterial implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    /**
     * 报修编码
     */
    @TableField("repairNum")
    private String repairnum;

    /**
     * 材料编码
     */
    @TableField("materialCode")
    private Integer materialcode;

    /**
     * 数目
     */
    private Integer count;

    /**
     * 总金额
     */
    private String amount;

    /**
     * 创建时间
     */
//    @TableField("createDate")
    @TableField(value = "createDate",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdate;

    /**
     * 创建人
     */
    @TableField("createUser")
    private String createuser;

    /**
     * 扩展1
     */
    private Integer expand1;

    /**
     * 扩展2
     */
    private String expand2;

    /**
     * 扩展3
     */
    private String expand3;


}
